Skip to content

Remove __SHORT_FILE__ macro definition in CMake #11147

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

jroelofs
Copy link

@jroelofs jroelofs commented Aug 7, 2025

This per-file macro definition on the command line breaks caching of modules. See discussion in llvm#150677

Instead we use a constexpr variable to force the constexpr evaluation by the frontend, and also the FILE_NAME macro when available (clang/gcc) to spare compile-time in the frontend.

(cherry picked from commit 3918596)

This per-file macro definition on the command line breaks caching of
modules. See discussion in llvm#150677

Instead we use a constexpr variable to force the constexpr evaluation
by the frontend, and also the __FILE_NAME__ macro when available
(clang/gcc) to spare compile-time in the frontend.

(cherry picked from commit 3918596)
@jroelofs jroelofs merged commit 22a4e72 into next Aug 7, 2025
@jroelofs jroelofs deleted the jroelofs/pick-39185965ac6884ffeff4fda20eb8fd0e0aa656d7-next branch August 7, 2025 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants